package com.weikuang.fareast.bean;

import java.util.List;

public class LoginNewBean {


    /**
     * user : {"authorities":[{"authority":"admin"}],"dataScopes":[],"roles":["admin"],"user":{"avatarName":"avatar-20250114101539224.png","avatarPath":"/Users/jie/Documents/work/me/admin/eladmin-mp/eladmin/~/avatar/avatar-20250114101539224.png","createTime":"2018-08-23 09:11:56","customerId":"3,2","dept":{"id":2,"name":"研发部"},"email":"201507802@qq.com","enabled":true,"gender":"男","id":1,"jobs":[{"id":11,"name":"全栈开发"}],"nickName":"管理员","password":"$2a$10$Egp1/gvFlt7zhlXVfEFw4OfWQCGPw0ClmMcc6FjTnvXNRVf9zdMRa","phone":"18888888888","pwdResetTime":"2020-05-03 16:38:31","roles":[{"dataScope":"全部","id":1,"level":1,"name":"超级管理员"}],"updateBy":"admin","updateTime":"2020-09-05 10:43:31","username":"admin"}}
     * token : Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1aWQiOiJmNWI3MjBkMjNiZTk0YzZjYmNjZjFkMDc0ZmU5NDNkMCIsInVzZXJJZCI6MSwic3ViIjoiYWRtaW4ifQ.f_1nagncggn3uyjFswnugDvN0BzunoXhK_xsJsXa2e7BVGJYCJ92UEoOx63uYp0GNj3R4qxnbtnBYHZr60wL-A
     */

    private UserBeanX user;
    private String token;

    public UserBeanX getUser() {
        return user;
    }

    public void setUser(UserBeanX user) {
        this.user = user;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public static class UserBeanX {
        /**
         * authorities : [{"authority":"admin"}]
         * dataScopes : []
         * roles : ["admin"]
         * user : {"avatarName":"avatar-20250114101539224.png","avatarPath":"/Users/jie/Documents/work/me/admin/eladmin-mp/eladmin/~/avatar/avatar-20250114101539224.png","createTime":"2018-08-23 09:11:56","customerId":"3,2","dept":{"id":2,"name":"研发部"},"email":"201507802@qq.com","enabled":true,"gender":"男","id":1,"jobs":[{"id":11,"name":"全栈开发"}],"nickName":"管理员","password":"$2a$10$Egp1/gvFlt7zhlXVfEFw4OfWQCGPw0ClmMcc6FjTnvXNRVf9zdMRa","phone":"18888888888","pwdResetTime":"2020-05-03 16:38:31","roles":[{"dataScope":"全部","id":1,"level":1,"name":"超级管理员"}],"updateBy":"admin","updateTime":"2020-09-05 10:43:31","username":"admin"}
         */

        private UserBean user;
        private List<AuthoritiesBean> authorities;

        private List<String> roles;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public List<AuthoritiesBean> getAuthorities() {
            return authorities;
        }

        public void setAuthorities(List<AuthoritiesBean> authorities) {
            this.authorities = authorities;
        }



        public List<String> getRoles() {
            return roles;
        }

        public void setRoles(List<String> roles) {
            this.roles = roles;
        }

        public static class UserBean {
            /**
             * avatarName : avatar-20250114101539224.png
             * avatarPath : /Users/jie/Documents/work/me/admin/eladmin-mp/eladmin/~/avatar/avatar-20250114101539224.png
             * createTime : 2018-08-23 09:11:56
             * customerId : 3,2
             * dept : {"id":2,"name":"研发部"}
             * email : 201507802@qq.com
             * enabled : true
             * gender : 男
             * id : 1
             * jobs : [{"id":11,"name":"全栈开发"}]
             * nickName : 管理员
             * password : $2a$10$Egp1/gvFlt7zhlXVfEFw4OfWQCGPw0ClmMcc6FjTnvXNRVf9zdMRa
             * phone : 18888888888
             * pwdResetTime : 2020-05-03 16:38:31
             * roles : [{"dataScope":"全部","id":1,"level":1,"name":"超级管理员"}]
             * updateBy : admin
             * updateTime : 2020-09-05 10:43:31
             * username : admin
             */

            private String avatarName;
            private String avatarPath;
            private String createTime;
            private String customerId;
            private DeptBean dept;
            private String email;
            private boolean enabled;
            private String gender;
            private int id;
            private String nickName;
            private String password;
            private String phone;
            private String pwdResetTime;
            private String updateBy;
            private String updateTime;
            private String username;
            private List<JobsBean> jobs;
            private List<RolesBean> roles;

            public String getAvatarName() {
                return avatarName;
            }

            public void setAvatarName(String avatarName) {
                this.avatarName = avatarName;
            }

            public String getAvatarPath() {
                return avatarPath;
            }

            public void setAvatarPath(String avatarPath) {
                this.avatarPath = avatarPath;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getCustomerId() {
                return customerId;
            }

            public void setCustomerId(String customerId) {
                this.customerId = customerId;
            }

            public DeptBean getDept() {
                return dept;
            }

            public void setDept(DeptBean dept) {
                this.dept = dept;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public boolean isEnabled() {
                return enabled;
            }

            public void setEnabled(boolean enabled) {
                this.enabled = enabled;
            }

            public String getGender() {
                return gender;
            }

            public void setGender(String gender) {
                this.gender = gender;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getPwdResetTime() {
                return pwdResetTime;
            }

            public void setPwdResetTime(String pwdResetTime) {
                this.pwdResetTime = pwdResetTime;
            }

            public String getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(String updateBy) {
                this.updateBy = updateBy;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public List<JobsBean> getJobs() {
                return jobs;
            }

            public void setJobs(List<JobsBean> jobs) {
                this.jobs = jobs;
            }

            public List<RolesBean> getRoles() {
                return roles;
            }

            public void setRoles(List<RolesBean> roles) {
                this.roles = roles;
            }

            public static class DeptBean {
                /**
                 * id : 2
                 * name : 研发部
                 */

                private int id;
                private String name;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class JobsBean {
                /**
                 * id : 11
                 * name : 全栈开发
                 */

                private int id;
                private String name;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class RolesBean {
                /**
                 * dataScope : 全部
                 * id : 1
                 * level : 1
                 * name : 超级管理员
                 */

                private String dataScope;
                private int id;
                private int level;
                private String name;

                public String getDataScope() {
                    return dataScope;
                }

                public void setDataScope(String dataScope) {
                    this.dataScope = dataScope;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getLevel() {
                    return level;
                }

                public void setLevel(int level) {
                    this.level = level;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }
        }

        public static class AuthoritiesBean {
            /**
             * authority : admin
             */

            private String authority;

            public String getAuthority() {
                return authority;
            }

            public void setAuthority(String authority) {
                this.authority = authority;
            }
        }
    }
}
